﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _46protected访问修饰符
{
    class Program
    {
        static void Main(string[] args)
        {
            Student s = new Student();
            
        }
        public class Person
        {
            private string _name;
            public string Name
            {
                get { return _name; }
                set { _name = value; }
            }
        }

        public class Student : Person
        {
            public void Test()
            {

            }
        }
    }
}
